<?php
#+------------------------------------------------------------------
#| 普通的。
#+------------------------------------------------------------------
#| Author:Janmas Cromwell <janmas-cromwell@outlook.com>
#+------------------------------------------------------------------
namespace app\library\websocket\action;

use app\library\websocket\tool\MessageBuilder;

class Unknown extends MessageCenter
{

    public function handle()
    {
        // TODO: Implement handle() method.
        $messageBuilder = (new MessageBuilder(false))->write('notice', '未知的消息类型，请联系管理员');
        $this->pusher->from($this->frame->fd)->notice($messageBuilder);
        return;
    }
}
